const baseConfig = require('./client.base');
const webpack = require('webpack');
const WriteFileWebpackPlugin = require('write-file-webpack-plugin');

const config = {
    ...baseConfig,

    plugins: [
        new WriteFileWebpackPlugin(), 

        new webpack.optimize.OccurrenceOrderPlugin(),

        new webpack.HotModuleReplacementPlugin(),

        ...baseConfig.plugins
    ],

    mode: 'development',

    devtool: 'cheap-module-inline-source-map'
}

module.exports = config;